#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QList>
#include "server.h"
#include "msgheader.h"

#include <QtXml/QDomDocument>
#include <QtXml/QDomElement>
#include <QtXml/QDomNode>
#include <QtXml/QDomNodeList>

namespace Ui {
    class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

signals:
    void serverClose();
private slots:


public:

private:
    Server m_Server; ///system server

private:
    Ui::Widget *ui;

    bool m_bIsBoot;
    int m_nCur;
    int m_nMax;
    int m_nMin;
    int m_nAvg;

private slots:
    void processNewConnection(QString uid,QString nickname,QString ip,int port);
    void processDisConnection(QString uid,QString nickname,QString ip,int port);

    void on_m_pbBoot_clicked();
};

#endif // WIDGET_H
